package main.java.factory.common;

/**
 * Created by admin on 2017/2/16.
 */
public class FactoryTest {

    public static void main(String[] args) {
        SendFactory factory = new SendFactory();
        Sender sender = factory.produce("sms");
        sender.send();

//        SendFactory factory1 = new SendFactory();
//        Sender sender1 = factory.produceMail();
//        sender.send();

        Sender sender2 = SendFactory.produceMail();
        sender2.send();
    }
}
